function processNodeColumns(_this, length) {
  let vm = _this
  return [{
    type: 'index',
    title: '序号',
    width: 70,
  },
  {
    title: '职级名称',
    width: 200,
    slot: 'dtRankName'
  },
  {
    key: 'positionRankVOList',
    title: '关联嘉扬职级',
    slot: 'positionRankVOList'
  },
  {
    key: 'handles',
    title: '操作',
    width: 200,
    render: (h, params) => {
      return h('div', [
        h(
          'a', {
            style: {
              cursor: 'pointer',
              marginRight: '7px',
            },
            on: {
              click: (e) => {
                e.stopPropagation()
                vm.handleAdd(params.row)
              },
            },
          },
          '关联嘉扬'
        ),
        h(
          'a', {
            style: {
              cursor: 'pointer',
              marginRight: '7px',
            },
            on: {
              click: (e) => {
                e.stopPropagation()
                vm.delete(params.row)
              },
            },
          },
          '删除'
        ),
        h(
          'a', {
            style: {
              cursor: 'pointer',
              marginRight: '7px',
              display: params.row._index == 0 ? 'none' : 'inline-block'
            },
            on: {
              click: (e) => {
                e.stopPropagation()
                vm.upItems(params.row._index)
              },
            },
          },
          '上移'
        ),
        h(
          'a', {
            style: {
              cursor: 'pointer',
              display: params.row._index == length - 1 ? 'none' : 'inline-block'
            },
            on: {
              click: (e) => {
                e.stopPropagation()
                vm.downItems(params.row._index)
              },
            },
          },
          '下移'
        )
      ])
    },
  }]
}
export default {
  processNodeColumns
}